home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00277_Script_TRAVELING_RETOUR
< prev
next >
Wrap
Text File
|
2004-12-05
|
2KB
|
48 lines
global gpiste_Fond,gdemiW_Fond, gL_Home, gNb_Traveltracks,gSens,gdemiH_Fond
property p_Incr
---------------------------
on getPropertyDescriptionList me
return [\
#p_Incr:[#comment: "incrΘment retour (en pixels):",#format: #integer, #default: 3]\
]
end getPropertyDescriptionList
on exitFrame me
case(gSens) of
1:
if sprite(gpiste_Fond).locH < gdemiW_Fond then
repeat with i =gpiste_Fond to gpiste_Fond + gNb_Traveltracks
sprite(i).locH = sprite(i).locH + p_Incr
end repeat
go the frame
else
sprite(gpiste_Fond).locH = gdemiW_Fond
repeat with i = 1 to gNb_Traveltracks
sprite(gpiste_Fond + i).locH = gL_Home[i][1]
end repeat
updateStage
end if
2:
if sprite(gpiste_Fond).locV > 456 - gdemiH_Fond then
repeat with i =gpiste_Fond to gpiste_Fond + gNb_Traveltracks
sprite(i).locV = sprite(i).locV - p_Incr
end repeat
go the frame
else
sprite(gpiste_Fond).locV = 456 - gdemiH_Fond
repeat with i = 1 to gNb_Traveltracks
sprite(gpiste_Fond + i).locV = gL_Home[i][2]
end repeat
updateStage
end if
end case
end
--------------------------------------------------------
on mouseUp
case(gSens) of
1:
sprite(gpiste_Fond).locH = gdemiW_Fond
2:
sprite(gpiste_Fond).locV = 456- gdemiH_Fond
end case
end
-----------------------------------------